<template>
	<view>
		<view>
			<image class="changimg" src="../../static/assert/19537572.gif" mode=""></image>
		</view>
	</view>
</template>
<script>
import { mapState, mapActions, mapGetters } from 'vuex';	
export default {
	data() {
		return {};
	},
	created() {},
	computed:{
		...mapGetters(['islogin']),
		...mapState('user', ['userinfo']),
		
	},
	async onShow() {
		let _this = this;
		//1.判断是否登入，没有他就跳转到登入页，后面代码不执行
		if (_this.userinfo==null) {
			
		    _this.$nav('/pages/auth/login');
		    
		}else{
			setTimeout(() => {
				
				uni.navigateTo({
					url: '/pages/secondcontract/index'
				});
			}, 1000);
		}
	},
	
	methods: {
		
	}
};
</script>
<style lang="scss" scoped>
	.changimg{
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 auto;
		padding-top: 250upx;
	}
</style>
